export default class Rect {
    constructor(startx, starty, width, height) {
        this.startx = startx
        this.starty = starty
        this.width = width
        this.height = height
        this.endx = this.startx + this.width
        this.endy = this.starty + this.height
    }

    contains(x, y) {
        if (x >= this.startx &&
            x <= this.endx &&
            y >= this.starty &&
            y <= this.endy)
            return true
        return false
    }
}